package com.group9.nepmserver.service.impl;


import com.group9.nepmserver.mapper.SupervisorMapper;
import com.group9.nepmserver.pojo.Supervisor;
import com.group9.nepmserver.service.ISupervisorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SupervisorServiceImpl implements ISupervisorService {

    @Autowired
    private SupervisorMapper supervisorMapper;

    @Override
    public Supervisor getSupervisorByIdByPass(Supervisor supervisor) {
        return supervisorMapper.getSupervisorByIdByPass(supervisor);
    }

    @Override
    public int saveSupervisor(Supervisor supervisor) {
        return supervisorMapper.insert(supervisor);
    }

    @Override
    public Supervisor getSupervisorById(String telId) {
        return supervisorMapper.selectById(telId);
    }
}
